package com.hyperboost.service.impl;

import com.hyperboost.mapper.NoticeMapper;
import com.hyperboost.service.NoticeService;
import com.hyperboost.vo.NoticeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    private NoticeMapper noticeMapper;


    /**
     * 获取所有状态为1公告信息
     *
     * @return
     */
    @Override
    public List<NoticeVO> getAllNotice() {
        List<NoticeVO> allNotice = noticeMapper.selectAllNotice();
        return allNotice;
    }
}
